﻿namespace WMS6.BLL
{
    using System;
    using System.Collections.Generic;
    using WMS6.Common;
    using WMS6.DataEntity;
    using WMS6.IDAL;
    using WMS6.QueryEntity;
    using WMS6.DALFactory;

    public class OperationLogBLL
    {
        private static readonly ICommonMethodDA commonMethod = DataAccess.CreateCommonMethod();
        private List<string> dataBaseID;
        private static readonly IOperationLogDA operationLogDA = DataAccess.CreateOperationLogDA();
        private PubParasInfo pubParasInfo;

        public OperationLogBLL()
        {
            this.pubParasInfo = null;
        }

        public OperationLogBLL(string currentWH)
        {
            this.pubParasInfo = null;
            if (!string.IsNullOrEmpty(currentWH))
            {
                this.dataBaseID = commonMethod.GetDataBaseID(currentWH);
                if (this.dataBaseID == null)
                {
                    PublicMethod.GetInstance().ShowAlertMessage("C001");
                }
            }
            else
            {
                PublicMethod.GetInstance().ShowAlertMessage("C002");
            }
        }

        public OperationLogBLL(PubParasInfo tempPubParasInfo)
        {
            this.pubParasInfo = null;
            if (!string.IsNullOrEmpty(tempPubParasInfo.CurrentWH))
            {
                this.dataBaseID = commonMethod.GetDataBaseID(tempPubParasInfo.CurrentWH);
                if (this.dataBaseID == null)
                {
                    PublicMethod.GetInstance().ShowAlertMessage("C001", this.pubParasInfo.UserLanguage);
                }
                else
                {
                    this.pubParasInfo = new PubParasInfo();
                    this.pubParasInfo = tempPubParasInfo;
                }
            }
            else
            {
                PublicMethod.GetInstance().ShowAlertMessage("C002", this.pubParasInfo.UserLanguage);
            }
        }

        public int Insert(string logDescrName, List<string> listIDs, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal8 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal8;
            for (int i = 0; i < listIDs.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, listIDs[i]);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<BolDetailInfo> bolDetailInfos, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal3b = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal3b;
            for (int i = 0; i < bolDetailInfos.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, bolDetailInfos[i].BolID + "/" + bolDetailInfos[i].LineID.ToString());
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<CycleCountTagInfo> cycleCountTagInfos, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal30 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal30;
            for (int i = 0; i < cycleCountTagInfos.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, string.Concat(new object[] { cycleCountTagInfos[i].RequestID, "/", cycleCountTagInfos[i].ReleaseID, "/", cycleCountTagInfos[i].TagNo }));
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<InvMovesInfo> invMovesInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal25 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal25;
            for (int i = 0; i < invMovesInfo.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, string.Concat(new object[] { invMovesInfo[i].FromOwnerID, "/", invMovesInfo[i].FromSkuID, "/", invMovesInfo[i].FromLpn, "/", invMovesInfo[i].MoveQty, "/", invMovesInfo[i].ToOwnerID, "/", invMovesInfo[i].ToSkuID, "/", invMovesInfo[i].ToLpn }));
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<OrderDetailInfo> orderDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal19 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal19;
            for (int i = 0; i < orderDetailInfo.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, orderDetailInfo[i].OrderID);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<PhysicalTagInfo> obj, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal2d = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal2d;
            for (int i = 0; i < obj.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, obj[i].PhysicalRequestID + "/" + obj[i].TagNo);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<PickDetailInfo> pickDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal1b = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal1b;
            for (int i = 0; i < pickDetailInfo.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, pickDetailInfo[i].OrderID + "/" + pickDetailInfo[i].OrderLineID.ToString() + "/" + pickDetailInfo[i].PickDetailID);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<PutawayDetailInfo> putawayDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal14 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal14;
            for (int i = 0; i < putawayDetailInfo.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, putawayDetailInfo[i].ReceiptID + "/" + putawayDetailInfo[i].ReceiptLineID.ToString() + "/" + putawayDetailInfo[i].TaskDetailID);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<ReceiptPutawayInfo> receiptPutawayInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal13 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal13;
            for (int i = 0; i < receiptPutawayInfo.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, receiptPutawayInfo[i].ReceiptID + "/" + receiptPutawayInfo[i].ReceiptLineID.ToString());
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<ShipmentContainerInfo> shipmentcontainerInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal1e = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal1e;
            for (int i = 0; i < shipmentcontainerInfo.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, shipmentcontainerInfo[i].OrderID + "/" + shipmentcontainerInfo[i].OrderLineID.ToString() + "/" + shipmentcontainerInfo[i].ContainerID);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, string listID, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal9 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal9;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, listID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, AdjustmentDetailInfo adjustmentDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal24 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal24;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, adjustmentDetailInfo.AdjustmentID + "/" + adjustmentDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, AdjustmentInfo adjustmentInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocale = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocale;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, adjustmentInfo.AdjustmentID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, BolDetailInfo bolDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal3a = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal3a;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, bolDetailInfo.BolID + "/" + bolDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, CycleCountReleaseInfo cycleCountReleaseInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal2f = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal2f;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, cycleCountReleaseInfo.ReleaseID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, CycleCountRequestInfo cycleCountRequestInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal2e = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal2e;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, cycleCountRequestInfo.RequestID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, CycleCountTagInfo cycleCountTag, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal31 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal31;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, string.Concat(new object[] { cycleCountTag.RequestID, "/", cycleCountTag.ReleaseID, "/", cycleCountTag.TagNo }));
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, DeliveryOrderDetailInfo deliveryOrderDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal3e = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal3e;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, deliveryOrderDetailInfo.DeliveryOrderID + "/" + deliveryOrderDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, DeliveryOrderInfo deliveryOrderInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal36 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal36;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, deliveryOrderInfo.DeliveryOrderID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, DispatchDetailInfo dispatchDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal3f = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal3f;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, dispatchDetailInfo.DispatchID + "/" + dispatchDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, DispatchInfo dispatchInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal38 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal38;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, dispatchInfo.DispatchID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, ExportDeclarationsInfo exportDeclarationsInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal16 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal16;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, exportDeclarationsInfo.DeclarationsID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, ImportDeclarationsInfo importDeclarationsInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal15 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal15;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, importDeclarationsInfo.DeclarationsID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, InvHoldInfo invHoldInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal26 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal26;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, invHoldInfo.OwnerID + "/" + invHoldInfo.SkuID + "/" + invHoldInfo.LpnID + "/" + invHoldInfo.Lot + "/" + invHoldInfo.Loc + "/" + invHoldInfo.IsHold);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, LpnInfo lpnInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal10 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal10;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, lpnInfo.LpnID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, MovementDetailInfo movementDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal2a = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal2a;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, movementDetailInfo.MovementID + "/" + movementDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, MovementInfo movementInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal29 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal29;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, movementInfo.MovementID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, OperationInfo operationInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal34 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal34;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, operationInfo.OperationID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, OrderDetailInfo ordersDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal18 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal18;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, ordersDetailInfo.OrderID + "/" + ordersDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, OrderSelectionInfo orderSelectionInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal1d = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal1d;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, orderSelectionInfo.OrderSelectionID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, OrdersInfo ordersInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal17 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal17;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, ordersInfo.OrderID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, OwnerTransferDetailInfo ownerTransferDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal33 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal33;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, ownerTransferDetailInfo.TransferID + "/" + ownerTransferDetailInfo.LineID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, OwnerTransferInfo ownerTransferInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal32 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal32;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, ownerTransferInfo.TransferID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, PhysicalRequestInfo physicalRequestInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal2b = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal2b;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, physicalRequestInfo.PhysicalRequestID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, PhysicalTagInfo obj, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal2c = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal2c;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, obj.PhysicalRequestID + "/" + obj.TagNo);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, PodDetailInfo podDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal40 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal40;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, podDetailInfo.PodID + "/" + podDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, PodInfo podInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal3d = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal3d;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, podInfo.PodID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, PurchaseOrderDetailInfo purchaseOrderDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal5 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal5;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, purchaseOrderDetailInfo.PoID + "/" + purchaseOrderDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, PurchaseOrderInfo purchaseOrderInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal4 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal4;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, purchaseOrderInfo.PoID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, ReceiptDetailInfo receiptDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal12 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal12;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, receiptDetailInfo.ReceiptID + "/" + receiptDetailInfo.ReceiptLineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, ReceiptInfo receiptInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocalc = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocalc;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, receiptInfo.ReceiptID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, SalesOrderDetailInfo salesOrderDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal7 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal7;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, salesOrderDetailInfo.OrderID + "/" + salesOrderDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, SalesOrderInfo salesOrderInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal6 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal6;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, salesOrderInfo.OrderID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, TaskDetailInfo taskDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal21 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal21;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, taskDetailInfo.TaskDetailID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, TaskManagerUserDetailInfo taskManagerUserDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal23 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal23;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, taskManagerUserDetailInfo.UserID + "/" + taskManagerUserDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, TaskManagerUserInfo taskManagerUserInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal22 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal22;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, taskManagerUserInfo.UserID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, TrackingDetailInfo trackingDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal3c = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal3c;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, trackingDetailInfo.DeliveryOrderID + "/" + trackingDetailInfo.TrackingID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, TransferDetailInfo transferDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal28 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal28;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, transferDetailInfo.TransferID + "/" + transferDetailInfo.LineID.ToString());
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, TransferInfo transferInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal27 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal27;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, transferInfo.TransferID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, WaveDetailInfo waveDetailInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal1f = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal1f;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, waveDetailInfo.WaveID + "/" + waveDetailInfo.OrderID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, WaveInfo waveInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal1c = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal1c;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, waveInfo.WaveID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, WorkCenterInfo workCenterInfo, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal35 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal35;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, workCenterInfo.WorkCenterID);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, List<string> listIDs, List<string> lineIDs, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocala = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocala;
            for (int i = 0; i < listIDs.Count; i++)
            {
                try
                {
                    string descr = string.Empty;
                    descr = listIDs[i];
                    if ((lineIDs != null) && (lineIDs.Count > 0))
                    {
                        descr = descr + "/" + lineIDs[i];
                    }
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, descr);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<string> IDs, string className, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal1 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal1;
            for (int i = 0; i < IDs.Count; i++)
            {
                if (!string.IsNullOrEmpty(className))
                {
                    try
                    {
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, IDs[i]);
                        operationLogDA.InsertOperationLog(operationLogInfo);
                    }
                    catch (Exception)
                    {
                    }
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, object obj, string className, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal0 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal0;
            if (!string.IsNullOrEmpty(className))
            {
                switch (className.ToUpper())
                {
                    case "UOM":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as UomInfo).UomID);
                        break;

                    case "CARTON":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as CartonInfo).CartonID);
                        break;

                    case "ZONE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as ZoneInfo).ZoneID);
                        break;

                    case "TRADE_PARTNER":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as TradePartnerInfo).OwnerID);
                        break;

                    case "ROLE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as RoleInfo).RoleID);
                        break;

                    case "AREA":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as AreaInfo).AreaID);
                        break;

                    case "USER_MST":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as UserMstInfo).UserID);
                        break;

                    case "LOT_TEMPLATE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as LotTemplateInfo).LotTemplateID);
                        break;

                    case "USER_PERMISSIONS":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource("BaseInfoService_USER_PERMISSIONS"), pubParasInfo.UserID, (obj as UserPermissionsInfo).UserID);
                        break;

                    case "PACK":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as PackInfo).PackID);
                        break;

                    case "LOCATION_TEMPLATE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as LocationTemplateInfo).LocTemplateID);
                        break;

                    case "DOMAIN":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as DomainInfo).DomainID);
                        break;

                    case "LOCATION":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as LocationInfo).Loc);
                        break;

                    case "PUTAWAY_RULE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as PutawayRuleInfo).PutawayRuleID);
                        break;

                    case "SYS_CODE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as SysCodeInfo).SysCodeType);
                        break;

                    case "ROTATION_RULE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as RotationRuleInfo).RotationRuleID);
                        break;

                    case "PREALLOCATE_RULE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as PreallocateRuleInfo).PreallocateRuleID);
                        break;

                    case "ALLOCATE_RULE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as AllocateRuleInfo).AllocateRuleID);
                        break;

                    case "TASK_RULE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as TaskRuleInfo).TaskRuleID);
                        break;

                    case "FILTER_CONFIG_HEADER":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as FilterConfigHeaderInfo).RecordType);
                        break;

                    case "SYS_SETTING":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as SysSettingInfo).SysSettingID);
                        break;

                    case "DB_CONFIG":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as DbConfigInfo).WhDbName);
                        break;

                    case "CYCLE_COUNT_CLASS":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as CycleCountClassInfo).ClassID);
                        break;

                    case "CUSTOMER":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as CustomerInfo).CustomerID);
                        break;

                    case "VENDOR":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as VendorInfo).VendorID);
                        break;

                    case "ITEM_NO":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as ItemNoInfo).ItemNoID);
                        break;

                    case "CARRIER":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as CarrierInfo).CarrierID);
                        break;

                    case "BILLING_ENTITY":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), (obj as BillingEntityInfo).CreatedBy, (obj as BillingEntityInfo).BillingEntityID);
                        break;

                    case "CYCLE_COUNT_RULE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as CycleCountRuleInfo).CcAdjRuleID);
                        break;

                    case "DRIVER":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as DriverInfo).DriverID);
                        break;

                    case "EQUIPMENT_TYPE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as EquipmentTypeInfo).EquipmentTypeID);
                        break;

                    case "TRANSPORT_EQUIPMENT":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as TransportEquipmentInfo).TransportEquipmentID);
                        break;

                    case "LOC_ADDR":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as LocAddrInfo).LocAddrID);
                        break;

                    case "LOC_SITE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as LocSiteInfo).LocSiteID);
                        break;

                    case "CONTRACT":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as ContractInfo).ContractID);
                        break;

                    case "SUBJECT":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as SubjectInfo).SubjectID);
                        break;

                    case "RATE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as RateInfo).RateID);
                        break;

                    case "GENERAL_LEDGER":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as GeneralLedgerInfo).GeneralLedgerID);
                        break;

                    case "TARIFF":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as TariffInfo).TariffID);
                        break;

                    case "BILLING_SERVICE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as BillingServiceInfo).BillingServiceID);
                        break;

                    case "ACCESSORIAL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as AccessorialInfo).AccessorialID);
                        break;

                    case "CALENDAR_GROUP":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as CalendarGroupInfo).CalendarGroupID);
                        break;

                    case "EQUIPMENT_POR_FILE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as EquipmentProfileInfo).EquipmentProfileID);
                        break;

                    case "RECEIPT_VALIDATION":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as ReceiptValidationInfo).ReceiptValidationID);
                        break;

                    case "AREA_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as AreaDetailInfo).AreaID + "/" + (obj as AreaDetailInfo).ZoneID);
                        break;

                    case "SKU_CLASS":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as SkuClassInfo).SkuClassID);
                        break;

                    case "LOT_ATTRIBUTE_CODE":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as LotAttributeCodeInfo).GroupID + "/" + (obj as LotAttributeCodeInfo).CodeID);
                        break;

                    case "BOM":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as BomInfo).OwnerID + "/" + (obj as BomInfo).SkuID);
                        break;

                    case "BOM_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as BomDetailInfo).OwnerID + "/" + (obj as BomDetailInfo).SkuID + "/" + (obj as BomDetailInfo).ComponentSkuID);
                        break;

                    case "PUTAWAY_RULE_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as PutawayRuleDetailInfo).PutawayRuleID + "/" + (obj as PutawayRuleDetailInfo).PaStrategy);
                        break;

                    case "SYS_CODE_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as SysCodeDetailInfo).SysCodeType + "/" + (obj as SysCodeDetailInfo).SysCode);
                        break;

                    case "SUBSTITUTE_SKU":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as SubstituteSkuInfo).SkuID + "/" + (obj as SubstituteSkuInfo).SubstituteSkuID);
                        break;

                    case "ALTERNATE_SKU":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as AlternateSkuInfo).SkuID + "/" + (obj as AlternateSkuInfo).AltSkuID);
                        break;

                    case "SKU":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as SkuInfo).SkuID);
                        break;

                    case "PREALLOCATE_RULE_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as PreallocateRuleDetailInfo).PreallocateRuleID + "/" + (obj as PreallocateRuleDetailInfo).PreallocateStrategy);
                        break;

                    case "ROTATION_RULE_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as RotationRuleDetailInfo).RotationRuleID + "/" + (obj as RotationRuleDetailInfo).LineID.ToString());
                        break;

                    case "ALLOCATE_RULE_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as AllocateRuleDetailInfo).AllocateRuleID + "/" + (obj as AllocateRuleDetailInfo).LineID.ToString());
                        break;

                    case "TASK_RULE_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as TaskRuleDetailInfo).TaskRuleID + "/" + (obj as TaskRuleDetailInfo).LineID.ToString());
                        break;

                    case "FILTER_CONFIG_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as FilterConfigHeaderInfo).FilterConfigDetailInfos.RecordType + "/" + (obj as FilterConfigHeaderInfo).FilterConfigDetailInfos.FilterName);
                        break;

                    case "RATE_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as RateDetailInfo).RateID + "/" + (obj as RateDetailInfo).RateType + "/" + (obj as RateDetailInfo).Descr);
                        break;

                    case "GENERAL_LEDGER_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as GeneralLedgerDetailInfo).GeneralLedgerID + "/" + (obj as GeneralLedgerDetailInfo).LineID.ToString());
                        break;

                    case "TARIFF_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as TariffDetailInfo).TariffID + "/" + (obj as TariffDetailInfo).LineID.ToString());
                        break;

                    case "CALENDAR_GROUP_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as CalendarGroupDetailInfo).CalendarGroupID + "/" + (obj as CalendarGroupDetailInfo).LineID.ToString());
                        break;

                    case "WORK_CLASS":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as WorkClassInfo).WorkClassID);
                        break;

                    case "ATTACH":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as AttachInfo).AttachID);
                        break;

                    case "ATTACH_DETAIL":
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, (obj as AttachDetailInfo).AttachID + "/" + (obj as AttachDetailInfo).LineID.ToString());
                        break;
                }
                try
                {
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, string listID, List<string> lineIDs, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocalb = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocalb;
            for (int i = 0; i < lineIDs.Count; i++)
            {
                try
                {
                    string descr = string.Empty;
                    descr = listID + "/" + lineIDs[i];
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, descr);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, string pk1, string pk2, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal37 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal37;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, pk1 + "/" + pk2);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, DispatchInfo dispatchInfo, List<BolDetailInfo> bolDetailInfos, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal39 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal39;
            for (int i = 0; i < bolDetailInfos.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, dispatchInfo.DispatchID + "/" + bolDetailInfos[i].BolID + "/" + bolDetailInfos[i].LineID.ToString());
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, string OrderID, List<string> LineID, string actualShipDate, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal1a = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal1a;
            for (int i = 0; i < LineID.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, OrderID + "/" + LineID[i]);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, WaveDetailInfo waveDetail, List<string> Ids, List<string> Status, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal20 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal20;
            for (int i = 0; i < Ids.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, waveDetail.WaveID + "/" + Ids[i]);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<string> mainID, List<string> subId, List<string> pk3, string className, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal2 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal2;
            for (int i = 0; i < mainID.Count; i++)
            {
                if (!string.IsNullOrEmpty(className))
                {
                    try
                    {
                        string descr = string.Empty;
                        descr = mainID[i];
                        if (!(((subId == null) || (subId.Count <= 0)) || string.IsNullOrEmpty(subId[i])))
                        {
                            descr = descr + "/" + subId[i];
                        }
                        if (!(((pk3 == null) || (pk3.Count <= 0)) || string.IsNullOrEmpty(pk3[i])))
                        {
                            descr = descr + "/" + pk3[i];
                        }
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, descr);
                        operationLogDA.InsertOperationLog(operationLogInfo);
                    }
                    catch (Exception)
                    {
                    }
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<string> mainID, List<string> subId, string isActive, string className, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal3 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal3;
            for (int i = 0; i < mainID.Count; i++)
            {
                if (!string.IsNullOrEmpty(className))
                {
                    try
                    {
                        string descr = string.Empty;
                        descr = mainID[i];
                        if (!(((subId == null) || (subId.Count <= 0)) || string.IsNullOrEmpty(subId[i])))
                        {
                            string CS00002 = descr;
                            descr = CS00002 + "/" + subId[i] + ":" + isActive;
                        }
                        operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(string.Format("{0}_{1}", logDescrName, className.ToUpper())), pubParasInfo.UserID, descr);
                        operationLogDA.InsertOperationLog(operationLogInfo);
                    }
                    catch (Exception)
                    {
                    }
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, List<LpnInfo> NewLpnInfo, InventoryInfo inventoryInfo, string strLpnID, string SplitType, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocalf = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocalf;
            for (int i = 0; i < NewLpnInfo.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, NewLpnInfo[i].LpnID + "/" + inventoryInfo.OwnerID + "/" + strLpnID + "/" + SplitType);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }

        public int Insert(string logDescrName, string pk1, string pk2, string pk3, string pk4, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocald = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocald;
            try
            {
                operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, pk1 + "/" + pk2 + "/" + pk3 + "/" + pk4);
                operationLogDA.InsertOperationLog(operationLogInfo);
            }
            catch (Exception)
            {
            }
            return 0;
        }

        public int Insert(string logDescrName, string soID, List<string> lineID, string vreceiptID, string maxLineID, string receiptType, PubParasInfo pubParasInfo)
        {
            OperationLogInfo gInitLocal11 = new OperationLogInfo {
                WhID = pubParasInfo.CurrentWH,
                UserID = pubParasInfo.UserID
            };
            OperationLogInfo operationLogInfo = gInitLocal11;
            for (int i = 0; i < lineID.Count; i++)
            {
                try
                {
                    operationLogInfo.OperationDescr = string.Format(PublicMethod.GetInstance().GetGlobalOperationLogResource(logDescrName), pubParasInfo.UserID, soID + "/" + lineID[i] + "/" + vreceiptID + "/" + maxLineID + "/" + receiptType);
                    operationLogDA.InsertOperationLog(operationLogInfo);
                }
                catch (Exception)
                {
                }
            }
            return 0;
        }
    }
}

